<template>
  <div>
    <r-h-table v-bind="table" />
  </div>
</template>

<script>
import { defineComponent, toRef } from 'vue'
import RHTable from '@/components/RHTable'
export default defineComponent({
  name: 'RHView',
  components: { RHTable },
  props: {
    /**
     * 创建按钮
     */
    create: {
      type: Boolean,
      default: true
    },
    /**
     * 修改按钮
     */
    update: {
      type: Boolean,
      default: true
    },
    /**
     * 删除按钮
     */
    delete: {
      type: Boolean,
      default: true
    },
    /**
     * 详情
     */
    details: {
      type: Boolean,
      default: true
    },
    /**
     * 列
     */
    table: {
      type: Array,
      default: () => []
    }
  },
  setup(props) {
    const table = toRef(props, 'table')
    table.headerParam = null
    return {
    }
  }
})
</script>

<style scoped>

</style>
